package com.cai.baseapplication.mvp.main.home

import android.widget.Toast
import com.blankj.utilcode.util.ToastUtils
import com.cai.baseapplication.R
import com.cai.baselibrary.mvp.IView
import com.cai.baselibrary.mvp.presenter.IPresenter
import com.cai.baselibrary.mvp.view.BaseFragment

class HomeFragment :BaseFragment() ,HomeContract.HomeView{
    override fun getLayoutView(): Int = R.layout.fragment_main_one
    override fun onSuccess(msg: String) {
        ToastUtils.showShort(msg)
    }

    override val mPresenter: HomePresenter
        get() = HomePresenter(this)

    override fun init() {

    }
}